package com.sg.file.common;

/**
 * 文件返回码枚举类
 * Created by asus on 2018/7/8.
 */
public enum FileCodeEnum {
    FILE_RECEIVE_SUCCESS("10010","文件上传成功"),
    NO_FILE_RECEIVE("10011","没有需要上传的文件"),
    FILE_SAVE_FAIL("10010","文件存储失败"),
    NO_FILE_DOWNLOAD("10021","没有可下载文件"),
    FILE_DOWNLOAD_FAIL("10022","文件传输异常"),
    FILE_TRANSFORM_FAIL("10031","文件转换失败");
    private String code;
    private String message;
    private FileCodeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
